import { APIGET, APIPOST, APIPUT, APIDELETE } from '../../bgApiToken';

/**
 * 查询工单报工进度信息
 * @returns
 */
export const queyrOdd = (param) => APIGET(`/sfcte/queyrOdd`,param);

/**
 * 查询当前工单工艺的报工单数据
 * @param param
 * @returns
 */
export const querySfCte = (param) => APIGET("/sfcte/querySfCte",param);


/**
 * Excel表格数据下载
 * @returns
 */
export const getExcel = (param) => APIGET(`/sfcte/getExcel?single=${param.single}&odd=${param.odd}&gx=${param.gx}`);


/**
 * 查询报工单明细信息
 * @param param
 * @returns
 */

export const queryIPage = (param) => APIPOST("/sfcte/queryIPage",param);

/**
 * 导出
 * @param param
 * @returns
 */
export const getExcelBg = (param) => APIPOST("/sfcte/getExcelBg",param);


//通过单别单号查找工单工艺进行派工
export const querySfCta = (param) => APIGET("/sfcte/querySfCta",param);
//分页查询工单工艺所有信息
export const querySfCtaIPag = (param) => APIPOST("/sfcte/querySfCtaIPag",param);

//派工
export const insertSfcte = (param) => APIPOST("/sfcte/insertSfcte",param);
//查询所有派工单明细信息
export const queryIPageS = (param) => APIPOST("/sfcte/queryIPageS",param);
//派工单详情
export const querySfCteS = (param) => APIGET("/sfcte/querySfCteS",param);

//报工单删除
export const deleteDb = (param) => APIPOST("/sfcte/deleteDb",param);

//派-报工查询中的详情接口
export const detailPB = (param) => APIGET("/sfcte/detailPB",param);

//查询员工
export const cmsmvAll = (param) => APIGET("/cmsmv/all",param);

//通过品号和检验编号删除品号检验项目
export const QmsmgDel = (param) => APIGET(`/Qmsmg/delete?mg002=${param.mg002}&mg003=${param.mg003}`);
//修改品号检验项目
export const QmsmgUpdate = (param) => APIPOST(`/Qmsmg/update`,param);
//取消检验
export const quxiao = (param) => APIGET(`/sfcte/quxiao?code=${param}`);
